<!--
 * @Author: guojinxin_hub 1907745233@qq.com
 * @Date: 2024-09-13 15:44:22
 * @LastEditors: guojinxin_hub 1907745233@qq.com
 * @LastEditTime: 2024-09-20 14:14:13
 * @FilePath: \new-yongqing\src\Views\home\Countryside\components\Right.vue
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
-->
<template>
  <Right_box>
    <LeaseTitle imgSrc="agriculture.png">农业农村</LeaseTitle>
    <div style="margin-left: 38px; margin-top: 4px">
      <SubTitle title-text="特色农业产区面积" :width="312" />
      <div class="spotTest-flex-div">
        <div class="spotTest-flex-one">
          <CharacteristicPlantation />
          <CharacteristicPlantation />
        </div>
        <div class="spotTest-flex">
          <CharacteristicPlantation />
          <CharacteristicPlantation />
        </div>
        <div style="margin-top: 56px">
          <SubTitle title-text="农作物播种面积" width="312" />
          <div class="crops">
            <span class="area">总面积</span><span class="val">3445</span
            ><span class="unit">万亩</span>
          </div>
          <V3Echarts
            :height="368"
            :width="602"
            :options="Option5()"
            container="Option4"
          ></V3Echarts>
        </div>
        <div style="margin-top: 26px">
          <SubTitle title-text="农作物产量" width="312" />
          <div class="crops">
            <span class="area">总面积</span><span class="val">3445</span
            ><span class="unit">万亩</span>
          </div>
          <V3Echarts
            :height="368"
            :width="602"
            :options="Option4()"
            container="Option5"
          ></V3Echarts>
        </div>
      </div>
    </div>
  </Right_box>
</template>

<script lang="ts" setup>
import Right_box from '@/components/right_box.vue'
import LeaseTitle from '@/components/Lease_title/index.vue'
import SubTitle from '@/components/SubTitle/SubTitle.vue'
import { Option4, Option5 } from './echartsoptions'
import CharacteristicPlantation from '@/components/home/CharacteristicPlantation.vue'
import V3Echarts from '@/components/V3Echarts/index.vue'
</script>

<style lang="scss" scoped>
.spotTest-flex-div {
  //   height: 368px;
  display: grid;
  width: 602px;
  .spotTest-flex-one {
    margin-top: 26px;
    display: flex;
    justify-content: space-between;
    height: 100%;
    align-items: center;
  }
  .spotTest-flex {
    display: flex;
    justify-content: space-between;
    margin-top: 42px;
  }
}
.crops {
  display: flex;
  align-items: end;
  position: relative;
  top: -27px;
  left: 372px;
  .area {
    font-weight: 400;
    font-size: 24px;
    color: #ffffff;
  }
  .val {
    margin-left: 22px;
    font-family: DIN;
    font-weight: bold;
    font-size: 30px;
    color: #ffcf80;
    font-style: italic;
  }
  .unit {
    margin-left: 8px;
    font-family: DIN;
    font-weight: bold;
    font-size: 16px;
    color: #ffcf80;
    font-style: italic;
    position: relative;
    bottom: 2px;
  }
}
</style>
